\hypertarget{classpkPlayback_1_1SongPlayback}{\section{pk\-Playback.\-Song\-Playback Class Reference}
\label{classpkPlayback_1_1SongPlayback}\index{pk\-Playback.\-Song\-Playback@{pk\-Playback.\-Song\-Playback}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classpkPlayback_1_1SongPlayback_a06ab26bf91995850f6a611a54550a910}{def {\bfseries \-\_\-\-\_\-init\-\_\-\-\_\-}}\label{classpkPlayback_1_1SongPlayback_a06ab26bf91995850f6a611a54550a910}

\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_a2e576879d081f541a6ff426371979fe2}{play}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_a098256f4b6aef8111e4962d9fd2e0b02}{pause}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_a204ac3f1411ee7c5b0a2220fca5083b1}{stop}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_a8d353c594bb09512b675ebaeb6d18b96}{rewind}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_a568a44a944f7720eba193527f87a2ab4}{forward}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_ac448ef5272c4a0939dfd0fbf4b726e41}{seek}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_af3f245e53145ac21f07152ace1cb3401}{clear}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_a4b73541a908f8450d8727da8a4f813c7}{set\-\_\-queue}
\item 
def \hyperlink{classpkPlayback_1_1SongPlayback_a9e5f064adb32b089e3ebd98240573f4d}{get\-\_\-current\-\_\-queue}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyVerb}General playback utility for pykodio.
Uses phonon for playback.
\end{DoxyVerb}
 

\subsection{Member Function Documentation}
\hypertarget{classpkPlayback_1_1SongPlayback_af3f245e53145ac21f07152ace1cb3401}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!clear@{clear}}
\index{clear@{clear}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{clear}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-clear (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_af3f245e53145ac21f07152ace1cb3401}
\begin{DoxyVerb}Empty Phonon's MediaObject queue and playing song\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_a568a44a944f7720eba193527f87a2ab4}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!forward@{forward}}
\index{forward@{forward}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{forward}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-forward (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_a568a44a944f7720eba193527f87a2ab4}
\begin{DoxyVerb}Seek gradually the playing song forward
--This method should be place in a loop
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_a9e5f064adb32b089e3ebd98240573f4d}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!get\-\_\-current\-\_\-queue@{get\-\_\-current\-\_\-queue}}
\index{get\-\_\-current\-\_\-queue@{get\-\_\-current\-\_\-queue}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{get\-\_\-current\-\_\-queue}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-get\-\_\-current\-\_\-queue (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_a9e5f064adb32b089e3ebd98240573f4d}
\begin{DoxyVerb}Return the current queue for testing purpose \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_a098256f4b6aef8111e4962d9fd2e0b02}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!pause@{pause}}
\index{pause@{pause}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{pause}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-pause (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_a098256f4b6aef8111e4962d9fd2e0b02}
\begin{DoxyVerb}Pause the playback \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_a2e576879d081f541a6ff426371979fe2}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!play@{play}}
\index{play@{play}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{play}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-play (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_a2e576879d081f541a6ff426371979fe2}
\begin{DoxyVerb}Start the playback \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_a8d353c594bb09512b675ebaeb6d18b96}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!rewind@{rewind}}
\index{rewind@{rewind}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{rewind}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-rewind (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_a8d353c594bb09512b675ebaeb6d18b96}
\begin{DoxyVerb}Seek gradually the playing song backward
--This method should be place in a loop
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_ac448ef5272c4a0939dfd0fbf4b726e41}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!seek@{seek}}
\index{seek@{seek}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{seek}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-seek (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{time}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_ac448ef5272c4a0939dfd0fbf4b726e41}
\begin{DoxyVerb}Seek the playing song at a specified time
--For better accuracy, use (insertName) slider
\end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_a4b73541a908f8450d8727da8a4f813c7}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!set\-\_\-queue@{set\-\_\-queue}}
\index{set\-\_\-queue@{set\-\_\-queue}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{set\-\_\-queue}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-set\-\_\-queue (
\begin{DoxyParamCaption}
\item[{}]{self, }
\item[{}]{paths\-\_\-of\-\_\-songs\-\_\-to\-\_\-enqueue = {\ttfamily \mbox{[}\mbox{]}}}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_a4b73541a908f8450d8727da8a4f813c7}
\begin{DoxyVerb}Set Phonon's MediaObject queue to songs_to_enqueue list \end{DoxyVerb}
 \hypertarget{classpkPlayback_1_1SongPlayback_a204ac3f1411ee7c5b0a2220fca5083b1}{\index{pk\-Playback\-::\-Song\-Playback@{pk\-Playback\-::\-Song\-Playback}!stop@{stop}}
\index{stop@{stop}!pkPlayback::SongPlayback@{pk\-Playback\-::\-Song\-Playback}}
\subsubsection[{stop}]{\setlength{\rightskip}{0pt plus 5cm}def pk\-Playback.\-Song\-Playback.\-stop (
\begin{DoxyParamCaption}
\item[{}]{self}
\end{DoxyParamCaption}
)}}\label{classpkPlayback_1_1SongPlayback_a204ac3f1411ee7c5b0a2220fca5083b1}
\begin{DoxyVerb}Stop the playback, clear the playlist, clear current source \end{DoxyVerb}
 

The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
pk\-Playback.\-py\end{DoxyCompactItemize}
